package cn.edu.zju.gis.disasterBE.sever.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("twitter_user")
@ApiModel("推特用户表")
public class TwitterUser implements Entity<String>{

    @TableId(value = "user_id", type = IdType.AUTO)
    @ApiModelProperty(value = "用户uid")
    private String userId;

    @TableField(value = "user_name")
    @ApiModelProperty(value = "用户名")
    private String username;

    @TableField(value = "count")
    @ApiModelProperty(value = "发帖数")
    private Integer count;

    @Override
    public String id()
    {
        return userId;
    }
}
